#!/usr/local/bin/python3
#coding=utf-8
import requests
from json import loads,dumps

html = requests.get("https://kyfw.12306.cn/otn/leftTicket/query?leftTicketDTO.train_date=2019-03-27&leftTicketDTO.from_station=CZH&leftTicketDTO.to_station=SHH&purpose_codes=ADULT")
print(html.text)
data = loads(html.text)
print(data.keys())
print(data['data'].keys())
print(data['data']['result'][0])
